<#escape x as x?html> <@h.commonHead title="后台管理系统" keywords="开源,永久免费"
description="springrain开源系统管理后台"/>
<script src="${ctx}/js/custom/common/form.js"></script>
<script type="text/javascript">
	 $(document).ready(function(){
		 
	 });
</script>
</head>
<body>
	<div class="layui-layout layui-layout-admin">
		<@h.naviHeader /> 
		<@h.leftMenu />
		<!-- 主体内容开始 -->
		<div class="layui-body site-demo">
			
			<div class="">
				<div class="site-text site-block">
					<div class="">
						<form class="layui-form" method="post" action="${ctx}/system/user/list" name="searchForm" id="searchForm" onkeydown="if(event.keyCode==13)return false;">
							<input type="hidden" name="pageIndex" id="pageIndex" value="${(returnDatas.page.pageIndex)!'1'}" /> 
							<input type="hidden" name="sort" id="page_sort" value="${(returnDatas.page.sort)!'desc'}" /> 
							<input type="hidden" name="order" id="page_order" value="${(returnDatas.page.order)!'id'}" /> 
							
						 	<div class="layui-inline">
							    <label class="layui-form-label">账号:</label>
							    <div class="layui-input-block">
							      <input type="text" id="search_account" name="account" placeholder="请填写账号" autocomplete="off" class="layui-input" value="${(returnDatas.queryBean.account)!''}">
							    </div>
						  	</div>
							
							<div class="layui-inline">
							    <label class="layui-form-label">是否可用:</label>
							    <div class="layui-input-block">
							      <select id="search_state" name="state" lay-filter="search_state">
							        <option value="是">是</option>
									<option value="否">否</option>
							      </select>
							    </div>
							  </div>
							  
							<div class="layui-inline">
						      	<button class="layui-btn" lay-submit lay-filter="*">查询</button>
						  	</div>
							
							<!-- <a href="javascript:mySubmitForm('searchForm');" class="btn btn-purple btn-sm"> 
								查询 <i class="ace-icon fa fa-search icon-on-right bigger-10"></i>
							</a> -->

						</form>
					</div>
					<div class="pull-right">
						<@shiro.hasPermission name="/system/user/update" > <a
							id="btn_reload" href="javascript:location.reload();"
							class="btn  btn-sm  btn-primary " style="display: none;">
							跳转至新增 >> </a>
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;


						<a id="btn_add" href="javascript:check('1');"
							class="btn  btn-sm  btn-primary "> <!-- <img
							src="${ctx}/images/btn_save.png" style="vertical-align: middle;" /> -->保存新增
						</a> <a id="btn_update" href="javascript:check('2');"
							class="btn  btn-sm  btn-primary " style="display: none;"> <!-- <img
							src="${ctx}/images/btn_save.png" style="vertical-align: middle;" /> -->保存修改
						</a> </@shiro.hasPermission> <@shiro.hasPermission
						name="/system/user/delete" > <a id="btn_delete"
							href="javascript:deleteUser();" class="btn btn-sm btn-danger "
							style="display: none;"> 删除 </a> </@shiro.hasPermission>
					</div>
				</div>
			</div>
			<!-- /.page-header -->
			<div class="row">
				<div class="col-xs-12">
					<div class="row">
						<div class="col-xs-12">
							<div class="col-sm-4 sub_left_menu ">
								<div class="widget-box">
									<div class="widget-header">
										<h4 class="widget-title">账号列表</h4>
									</div>
									<div class="widget-body">
										<div class="widget-main">
											<table class="table table-striped table-bordered table-hover">
												<thead>
													<tr>
														<th>账号</th>
														<th>姓名</th>
														<th>手机号</th>
													</tr>
												</thead>
												<tbody>
													<#if (returnDatas.data??)&&(returnDatas.data?size>0)>
													<#list returnDatas.data as _data>
													<tr id="${(_data.id)!''}">
														<td>${(_data.account)!''}</td>
														<td>${(_data.name)!''}</td>
														<td>${(_data.mobile)!''}</td>
													</tr>
													</#list> </#if>
												</tbody>
											</table>
										</div>
									</div>
								</div>
							</div>
							<div class="col-sm-8">
								<div class="widget-box">
									<div class="widget-header">
										<h4 class="widget-title">详细信息</h4>
									</div>
									<div class="widget-body">
										<div class="widget-main">
											<form class="form-horizontal clearfix" method="post"
												action="${ctx}/system/user/update" name="updateForm"
												id="updateForm">
												<input type="hidden" id="id" name="id" value=""> <input
													type="hidden" id="pname" name="pname" value="">

												<div class="col-sm-6">
													<div class="form-group">
														<label class="col-sm-3 control-label no-padding-right"
															for="account"> 账号<span style="color: #E12424">*</span>
														</label>
														<div class="col-sm-9">
															<input type="text" id="account" name="account"
																placeholder="账号" datatype="*1-200"
																errormsg="账号长度1--200位之间!" nullmsg="账号不能为空"
																class="form-control">
														</div>
													</div>
													<div class="form-group" id="pwdDiv">
														<label class="col-sm-3 control-label no-padding-right"
															for="password"> 密码 </label>

														<div class="col-sm-9">
															<input type="password" id="password" name="password"
																placeholder="密码" class="form-control">
														</div>
													</div>
													<div class="form-group">
														<label class="col-sm-3 control-label no-padding-right"
															for="name"> 姓名<span style="color: #E12424">*</span>
														</label>
														<div class="col-sm-9">
															<input type="text" id="name" name="name" placeholder="姓名"
																datatype="*1-200" errormsg="姓名长度1--200位之间!"
																nullmsg="姓名不能为空" class="form-control">
														</div>
													</div>
													<div class="form-group">
														<label class="col-sm-3 control-label no-padding-right"
															for="orgIds"> 部门<span style="color: #E12424">*</span>
														</label>
														<div class="col-sm-9">
															<div class="input-group">
																<input name="orgNames" class="form-control val"
																	id="orgNames" type="text" datatype="*" nullmsg="角色不能为空"
																	readonly="readonly" /> <input name="orgIds" id="orgIds"
																	type="hidden" /> <span class="input-group-btn">
																	<a onclick="showZtreeOrg();"
																	class="btn btn-sm btn-primary"> <i
																		class="fa fa-search"></i>
																</a>
																</span>
															</div>
														</div>
													</div>
													<div class="form-group">
														<label class="col-sm-3 control-label no-padding-right"
															for="roleIds"> 角色<span style="color: #E12424">*</span>
														</label>
														<div class="col-sm-9">
															<select id="roleIds" name="roleIds" class="form-control"
																datatype="*" nullmsg="角色不能为空" multiple
																data-placeholder="请选择角色">
															</select>
														</div>
													</div>
												</div>
												<div class="col-sm-5">
													<div class="form-group">
														<label
															class="col-sm-3 control-label no-padding-right no-padding-left"
															for="mobile"> 手机号</label>
														<div class="col-sm-9">
															<input type="text" id="mobile" name="mobile"
																placeholder="手机号" class="form-control">
														</div>
													</div>
													<div class="form-group">
														<label
															class="col-sm-3 control-label no-padding-right no-padding-left"
															for="email"> 电子邮箱 </label>
														<div class="col-sm-9">
															<input type="text" id="email" name="email"
																placeholder="电子邮箱" class="form-control">
														</div>
													</div>
													<div class="form-group">
														<label class="col-sm-3 control-label no-padding-right"
															for="sex"> 性别</label>
														<div class="col-sm-9">
															<select class="form-control " id="sex" name="sex">
																<option value="男">男</option>
																<option value="女">女</option>
															</select>
														</div>
													</div>
													<div class="form-group">
														<label
															class="col-sm-3 control-label no-padding-right no-padding-left"
															for="state"> 是否可用</label>
														<div class="col-sm-9">
															<select id="state" name="state"
																class="form-control col-10">
																<option value="是">是</option>
																<option value="否">否</option>
															</select>
														</div>
													</div>
												</div>
											</form>
										</div>
									</div>
								</div>
							</div>
						</div>
						<!-- /.span -->
					</div>
					<div id="laypageDiv"></div>
					<@h.layPage page=returnDatas.page/>
				</div>
			</div>
			<!-- /.main-container -->
			<div id="div_orgMultiSelectTree">
				<ul id="orgMultiSelectTree" class="ztree"></ul>
			</div>

		</div>
		<!-- 主体内容结束 -->
		<@h.footer />
	</div>
</body>
</html>
</#escape>
